package com.peng.dian.mapper;

import com.peng.dian.pojo.Department1;
import com.peng.dian.pojo.Department2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DeptMapper {
    List<Department1> queryDeptList();
    int addUser(Department1 department1);
    int updateDept(Department1 department1);
    int deleteDept(int id);

    /*获取部门的所有人员*/
    Department2 getDepartmentPeople(String deptName);
}
